package domain.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Traduccion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "traduccion", catalog = "bms")
public class Traduccion implements java.io.Serializable {

	// Fields

	private Integer id;
	private DocumentoCentro documentoCentro;

	// Constructors

	/** default constructor */
	public Traduccion() {
	}

	/** full constructor */
	public Traduccion(DocumentoCentro documentoCentro) {
		this.documentoCentro = documentoCentro;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "DOCUMENTOid", nullable = false)
	public DocumentoCentro getDocumentoCentro() {
		return this.documentoCentro;
	}

	public void setDocumentoCentro(DocumentoCentro documentoCentro) {
		this.documentoCentro = documentoCentro;
	}

}